package edu.utility.xuggle;
import java.io.Serializable;


public class MyAudio implements Serializable {
	private static final long serialVersionUID = 1L;
	private byte[] bytes;
	
	public void setBytes(byte[] bytes){
		this.bytes = bytes;
	}
	public void addBytes(byte[]  newbytes){
		
		if(bytes == null)
			setBytes(newbytes);
		else{
			byte[] temp = bytes;
			bytes = new byte[temp.length + newbytes.length];
			for(int i = 0; i < temp.length; i++)
				bytes[i] = temp[i];
			
			int count = 0;
			for(int i = temp.length; i < bytes.length; i++){
				bytes[i] = newbytes[count];
			}
		}
		
	}
	public byte[] getBytes(){return bytes;}

}
